package com.lzc.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@Setter
@Getter
@ToString
@TableName("comments")
public class Comment{

    @TableId(type = IdType.AUTO,value = "comment_id")
    private Long commentId;

    private String content;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("user_id")
    private Long userId;

    @TableField("article_id")
    private Long articleId;

    @TableField("rootComment_id")
    private Long rootCommentId;

    @TableField("to_comment_id")
    private Long toCommentId;

    @TableField("comment_like_count")
    private Long commentLikeCount;

}
